package com.funtl.framework.web.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

import com.funtl.framework.java.ssh.abstracts.AbstractEntity;

/**
 * 权限菜单
 * @author WMLI
 * Create on 2013-5-14
 */
@Entity
@Table(name = "t_purview_menu")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class PurviewMenu extends AbstractEntity {
	private static final long serialVersionUID = -3885930700795545034L;
	private String id;
	private String menuName;
	private String purviewColumnId;
	private String menuUrl;
	private Integer menuNo;
	private String createId;
	private String createName;
	private String createDate;
	private String updateId;
	private String updateName;
	private String updateDate;
	private String params;

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "menu_name", nullable = false, length = 20)
	public String getMenuName() {
		return this.menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	@Column(name = "purview_column_id", nullable = false, length = 32)
	public String getPurviewColumnId() {
		return this.purviewColumnId;
	}

	public void setPurviewColumnId(String purviewColumnId) {
		this.purviewColumnId = purviewColumnId;
	}

	@Column(name = "menu_url", nullable = false, length = 500)
	public String getMenuUrl() {
		return this.menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	@Column(name = "menu_no", nullable = false)
	public Integer getMenuNo() {
		return this.menuNo;
	}

	public void setMenuNo(Integer menuNo) {
		this.menuNo = menuNo;
	}

	@Column(name = "create_id", length = 32)
	public String getCreateId() {
		return this.createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	@Column(name = "create_name", length = 20)
	public String getCreateName() {
		return this.createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	@Column(name = "create_date", length = 19)
	public String getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	@Column(name = "update_id", length = 32)
	public String getUpdateId() {
		return this.updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	@Column(name = "update_name", length = 20)
	public String getUpdateName() {
		return this.updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}

	@Column(name = "update_date", length = 19)
	public String getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}

	@Column(name = "params", length = 65535)
	public String getParams() {
		return this.params;
	}

	public void setParams(String params) {
		this.params = params;
	}

}